
#include <string.h>

#include "Console.h"
#include "VInfra/VDebug.h"
#include "VInfra/VThread.h"
#include "VInfra/VTimer.h"


namespace Veda{

void VCmd_help(int argc, char* argv[])
{
	if(strcmp(argv[0], "help") != 0)
	{
		return;
	}
	infof("Cmd_help\n");
}

void VCmd_syscall(int argc, char* argv[])
{
	if(strcmp(argv[0], "syscall") != 0)
	{
		return;
	}
	infof("Cmd_syscall\n");
}
	
void VCmd_console(int argc, char* argv[])
{
	if(strcmp(argv[0], "console") != 0)
	{
		return;
	}
	infof("Cmd_console\n");
}

void VCmd_thread(int argc, char* argv[])
{
	if(strcmp(argv[0], "thread") != 0)
	{
		return;
	}
	if(argc == 1)
	{
		VThread::dumpAllThreads();
	}
	if(argc == 2 && strcmp(argv[0], "-help") != 0)
	{
		infof("thread help\n");
	}
}

void VCmd_timer(int argc, char* argv[])
{
	if(strcmp(argv[0], "timer") != 0)
	{
		return;
	}
	if(argc == 1)
	{
		VTimer::dumpAllTimers();
	}
	if(argc == 2 && strcmp(argv[0], "-help") != 0)
	{
		infof("timer help\n");
	}
}



}

